package PO

import "time"

// 这里放数据库字段
type Article struct {
	ID         int        `gorm:"column:id;primary_key"`
	Title      string     `gorm:"column:title;type:varchar(128);not null;"`
	CatId      int        `gorm:"column:cat_id;type:int(11);not null;"`
	Author     string     `gorm:"column:author;type:varchar(32);not null;"`
	State      int        `gorm:"column:state;type:tinyint(1);not null;"`
	Content    string     `gorm:"column:content;type:text;not null;"`
	CreateTime *time.Time `gorm:"column:create_time;type:text;not null;"`
	updateTime *time.Time `gorm:"column:update_time;type:text;not null;"`
}

var ArticleTableName = "os_article"
